#include<iostream>
#include<string>
#include<vector>
using namespace std;
class PrintString{
friend void print_vector(PrintString &p);
public:
	PrintString()=default;
	void operator()(istream &is);
private:
	string word;
	vector<string> v;
};
void print_vector(PrintString &p);
void print_vector(PrintString &p){
	for(auto s:p.v)
		cout<<s<<endl;
}
void PrintString::operator()(istream &is)
{
	while(getline(is,word)){
		v.push_back(word);
	}
}
int main()
{
	PrintString prints;
	prints(cin);
	print_vector(prints);
	return 0;
}